package com.woniu.adopt.mapper;

import com.woniu.adopt.entity.Apply;
import com.woniu.adopt.vo.ApplyVo;
import com.woniu.adopt.vo.EchartsVo;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.Date;
import java.util.List;
@Repository
public interface ApplyMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Apply record);

    ApplyVo selectByPrimaryKey(Integer id);

    List<Apply> selectAll();

    int updateByPrimaryKey(Apply record);

    List<ApplyVo> selectApplyByCondition(@Param("name") String name, @Param("time") Date time);

    void updateByStatus(@Param("id") Integer id, @Param("status") Integer status,@Param("updateTime") Date updateTime);

    List<ApplyVo> selectOldApplyByCondition(@Param("name") String name, @Param("time") Date time,@Param("status")Integer status);

    Integer count();

    List<EchartsVo> weekNumByCount();

}